file(GLOB_RECURSE SRC_SOL2 src *.cpp *.h *.hpp *.lua )

add_executable(test_fmt ${SRC_SOL2})

IF (CMAKE_SYSTEM_NAME MATCHES "Windows")
    include_directories( $ENV{fmt_path}/include)
	
    add_definitions(-DWIN32)
    add_definitions(-DWIN32_LEAN_AND_MEAN)
    add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
	target_link_libraries(test_fmt $ENV{fmt_path}/build/Debug/fmtd.lib)

ELSE()
    set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
    set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
	add_definitions(-DLinux)
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Windows")


